﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Simple.Services.System
{
    public class CreateChildAttendanceRuleInput : ModelBase
    {
        /// <summary>
        /// 入园时间
        /// </summary>
        [Required(ErrorMessage = "请填写入园时间")]
        public string? EntryTime { get; set; }

        /// <summary>
        /// 出园时间
        /// </summary>
        [Required(ErrorMessage = "请填写出园时间")]
        public string? OutSchoolTime { get; set; }

        public override void ConfigureMapper(Profile profile)
        {
            profile.CreateMap<ChildAttendanceRule, CreateChildAttendanceRuleInput>();
            profile.CreateMap<CreateChildAttendanceRuleInput, ChildAttendanceRule>();
        }
    }
}
